//
//  JSONParser.m
//  UI12_01_UITableView 自定义cell
//
//  Created by wyx on 16/3/24.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "JSONParser.h"

@implementation JSONParser

+ (id)JSONParserWithFileName:(NSString *)name type:(NSString *)type{
    NSString *path = [[NSBundle mainBundle]pathForResource:name ofType:type];
    NSData *date = [NSData dataWithContentsOfFile:path];
    id result = [NSJSONSerialization JSONObjectWithData:date options:NSJSONReadingMutableContainers error:nil];
    return result;
}

@end
